﻿using System;
using Web_Oto.Common;

namespace Administration
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var cookie = CommonHelper.GetCookieString("username_admin", true);
                if (string.IsNullOrEmpty(cookie))
                    Response.Redirect("~/Administer/Login.aspx");
                //else
                //    Response.Redirect("~/Administer/Introduction.aspx");
            }
        }
    }
}